import Vue from 'vue'
import Vuex from 'vuex'
import NewList from './modoles/newlist'
import Categtory from './modoles/categtory'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    NewList,
    Categtory
  },
  getters: {
    categtory: state => state.Categtory.categtory,
    currentCategtory: state => state.Categtory.currentCategtory,
    currentList: state => state.NewList.allData[state.Categtory.currentCategtory] || []
  }
})
